package scala.patternMatching

object MatchingOnTuple {
   def main(args: Array[String]): Unit = {
      
     val tupA = ("Good","Morning !")
     val tupB = ("Have", "Nice Day ")
     
     for(tup <- List(tupA, tupB)){
        tup  match {
          case (thingOne, thingTwo) if thingOne == "Good" =>
             println(tup +"  have thingOne is : Good")
          case _ => 
             println(tup  + " is another kind")
        }
     }
   }
}